package com.itany.netclass.service;

import com.itany.netclass.entity.CourseType;
import com.itany.netclass.entity.User;
import com.itany.netclass.exception.*;

import java.util.List;

/**
 * Author:sjy@itany.com
 * Date:21-10-14 上午9:09
 * Version:1.0-SNAPSHOT
 * Description:
 */
public interface CourseTypeService {
    public List<CourseType> findAllCourseType(User user, String parentId) throws NoLoginException, ServiceException;

    public CourseType findCourseTypeById(String id) throws ServiceException;

    public void addCourseType(String typeName, String parentId) throws ServiceException, NullSringException, TypeExistException;

    public List<CourseType> backCourseType(String id) throws NoFatherException, ServiceException;

    public void modifyCourseTypeById(String id, String typeName, String parentId) throws NullSringException, TypeExistException, ServiceException;

    public void yongCourseTypeById(String id, String status) throws  Exception;
}
